<?php
class Pageley_Util_Entry implements Pageley_Util_Comparable {
	
	private $index;
	private $value;
	
	public function __construct($index, $value) {
		$this->index = $index;
		$this->value = $value;
	}
	
	public function getValue() {
		return $this->value;
	}
	
	public function getIndex() {
		return $this->index;
	}
	
	public function compareTo($object) {
		return $this->index > $object->getIndex() ? 1 :
		    ($this->index < $object->getIndex() ? -1 : 0);
	}
}
?>